#include <iostream>
#include <string>
#include <algorithm>
#include <unordered_map>
using namespace std;

int main() {
    string s1, s2;
    while (cin >> s1 >> s2)
    {
        int cnt = 0;
        unordered_map<char, int> hash;
        if (s1.size() < s2.size()) swap(s1, s2);
        for (auto c : s1)
        {
            hash[c]++;
        }

        for (auto c : s2)
        {
            hash[c]--;
        }
        for (auto e : hash)
        {
            if (e.second > 0)
                cnt += e.second;
        }

        cout << cnt << endl;
    }
    return 0;
}